<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>群聊页面</title>
  <link rel="stylesheet" href="css/chat.css">
</head>
<body>
<div class="chat-container">
  <div class="sidebar">
    <div class="search-bar">
      <input type="text" id="search-input" placeholder="搜索">
      <button onclick="searchUser()">搜索</button>
    </div>
    <div class="user-list" id="user-list">
      <!-- 搜索结果会显示在这里 -->
    </div>
  </div>
  <div class="chat-main">
    <div class="chat-header">
      <img src="" alt="头像" class="avatar" id="header-avatar">
      <span id="header-nickname">群聊小分队</span>
    </div>
    <div class="chat-box" id="chat-box">
      <!-- 历史消息和实时消息会显示在这里 -->
    </div>
    <div class="chat-input">
      <input type="text" id="message-input" placeholder="输入消息...">
      <button onclick="sendMessage()">发送</button>
    </div>
  </div>
</div>
<script src="js/chat.js"></script>
</body>
</html>


